<template>
	<view class="container">
		<!-- 头部轮播 -->
		<swiper autoplay="true" indicator-dots="true" circular="true" style="height: 884upx;">
			<swiper-item v-for="(img,key) in res" :key="key">
				<image :src="img.image" style="height: 884upx;width: 100%;" model="aspectFill" @click="jumpall(img.url)" />
			</swiper-item>
		</swiper>
		<!-- 分类 -->
		<view class="cate-section">
			<view class="cate-item">
				<!-- ../../pagesA/user/mendian/mendian -->
				<image src="/static/xinrenhuodong.png" @click="jumpno" data-src=""></image>
				<text>附近美店</text>
			</view>
			<view class="cate-item">
				<image src="/static/fujinmeidian.png" @click="jump" data-src="../../pagesA/user/coupon/coupon"></image>
				<text>每日红包</text>
			</view>
			<view class="cate-item">
				<image @click="jumpno" src="/static/jifenduihuan.png"></image>
				<text>新人活动</text>
			</view>
			<view class="cate-item">
				<image src="/static/meirihongbao.png" @click="jump" data-src="../product/timelimit"></image>
				<text>限时抢购</text>
			</view>
			<view class="cate-item" @click="jumpno" data-src="../../pagesA/user/jifen/jifen">
				<image src="/static/xianshiqianggou.png"></image>
				<text>积分兑换</text>
			</view>
		</view>
		
		<!-- 视频区 -->
		<view style="width: 100%;height: 400upx;background-color: #fff;">
			<video src="https://cx.mingmeijt.com/Static/Pc/images/shipin.mp4"
			 id="myVideo" style="width: 710upx;height: 100%;margin: 0 20upx;"
			 :controls="true" :muted="false" 
			>
			</video>
		</view>
		
		<!-- 主题展示 -->
		<!-- <view class="p_father">
			<view class="p_left">
				<image :src="res_1" @click="jumpall(res_1_url)"></image>
			</view>
			<view class="p_right">
				<view class="img_top">
					<image :src="res_2" @click="jumpall(res_2_url)"></image>
				</view>
				<view class="img_top" style="margin-top: 20upx;">
					<image :src="res_3" @click="jumpall(res_3_url)"></image>
				</view>
			</view>
		</view> -->
		
		<view class="detail-desc" style="overflow: hidden;margin-top: 0;padding-top: 20upx;">
			<view style="height: 110upx;line-height: 110upx;text-align: center;font-size: 30upx;font-weight: 555;">
				<text>妊振纹修护品牌</text>
			</view>
		</view>
		<view style="background-color: #fff;padding: 20upx 0;overflow: hidden;" @click="jumptocustomer()">
			<image src="https://cx.mingmeijt.com/Static/Pc/images/abl_thumb.jpg" style="width: 100%;padding: 0 20upx;" mode="widthFix"></image>
		</view>
		
		<view class="detail-desc" style="overflow: hidden;margin-top: 0;padding-top: 20upx;" v-if="panicBuyingGoods_list.length>0">
			<view class="d-header" style="font-weight: 555;height: 110upx;line-height: 110upx;">
				<text>限时抢购</text>
			</view>
			<view class="item" style="width: 100%;margin-top: 6upx;min-height: 366upx;">
				<image class="triangle" :src="panicBuying_image" style="min-height: 366upx;" @click="jump" data-src="../product/timelimit"></image>
			</view>
			<!-- <view v-for="(item,i) in limitTimeList" :key="i" class="item" style="width: 95%;margin: 0 2.5%;margin-top: 6upx;">
				<image class="triangle" :src="item.image" style="border-radius: 20upx;border: 1upx solid #DDDDDD;box-shadow: 1upx 1upx 10upx #DDDDDD;" @click="jumpgoods(item.id)"></image>
			</view> -->
		</view>
		<view style="min-height: 200upx;background-color: #FFFFFF;padding-top: 20upx;" v-if="panicBuyingGoods_list.length>0">
			<scroll-view scroll-x class="h-list">
				<view v-for="(item,i) in panicBuyingGoods_list" :key="i" style="width: 230upx;display: inline-block;" @click="jumprushgoods(item.id)">
					<view style="width: 230upx;text-align: center;">
						<image :src="item.goods_thumb_image" mode="aspectFill" style="margin: 0 20upx;"></image>
					</view>
					<view style="min-height: 36upx;line-height: 36upx;white-space: pre-wrap !important;text-align: center;padding: 0 20upx;">
						<text style="">{{item.goods_short}}</text>
					</view>
					<view style="width: 230upx;text-align: center;margin-top: 10upx;">
						<text style="color: #FF3333;font-weight: 555;"><text style="font-size: 24upx;">￥</text> {{item.price}}</text>
						<text style="text-decoration: line-through;font-size: 22upx;color: #888888;">￥{{item.cost_price}}</text>
					</view>
				</view>
			</scroll-view>
		</view>
		
		<!-- @click="jumpgoods" :data-id='item.id' -->
		<view class="detail-desc" v-if="groupbuy.length>0" style="margin-top: 0;padding-top: 20upx;">
			<view class="d-header" style="font-weight: 555;height: 110upx;line-height: 110upx;">
				<text>限时拼团</text>
			</view>
			<view v-for="(item,i) in groupbuy" :key="i" class="item" style="width: 95%;margin: 0 2.5%;margin-top: 6upx;">
				<image class="triangle" :src="item.goods_thumb" style="border: 1upx solid #DDDDDD;box-shadow: 1upx 1upx 10upx #DDDDDD;width: 100%;" @click="jumpgoods(item.id)"></image>
				<view class="detail">
					<view class="name" style="color: #000000;font-weight: 555;font-size: 30upx;height: 67upx;position: relative;">
						<text>{{item.goods_short}}</text>
						<view style="position: absolute;top: -10upx;right: 20upx;">
							<text style="color: #aaaaaa;padding: 0 5upx;">|</text><text style="font-weight: 555;font-size: 34upx;">￥{{item.cost_price}}</text>
							<!-- <text>/</text> -->
							<!-- <text style="text-decoration: line-through;color: #aaaaaa;font-size: 22upx;line-height: 10upx;">{{item.single_price}}</text> -->
						</view>
					</view>
					<!-- 倒计时 -->
					<view class="webkit" style="position: relative;height: 50upx;">
						<text style="font-size: 24upx;color: #aaaaaa;font-weight: 550;" class="flex"> {{ item.goods_name }} </text>
						<uni-countdown :day="item.second.day" :hour="item.second.hr" :minute="item.second.min" :second="item.second.sec" style="position: absolute;top: -20upx;right: -23upx;background: transpant;z-index: 0;height: 40upx;"></uni-countdown>
					</view>
				</view>
			</view>
		</view>
		
		<!-- 话题列表 -->
		<view class="detail-desc" style="overflow: hidden;">
			<view style="height: 110upx;line-height: 110upx;text-align: center;font-size: 30upx;font-weight: 555;">
				<text>美购社区</text>
			</view>
			<view v-for="(item,i) in topicList" :key="i" class="item" style="width: 710upx;margin: 0 20upx 40upx;box-shadow: 0upx 10upx 10upx #f1f1f1;" >
				<view style="">
					<image class="triangle" :src="item.label_thumb" style="width: 100%;" mode="widthFix"
						@click="navToDetailPage(item.id)"  data-src="../topic/topic"
					></image>
					<view style="height: 100upx;line-height: 100upx;">
						<image src="../../static/01.png" style="width: 60upx;height: 60upx;vertical-align: middle;margin-left: 20upx;" mode=""></image>
						<text style="margin: 0upx 30upx 0 20upx;">生物伞MAGICALAB</text>
						<image src="../../static/vip.png" style="width: 30upx;height: 30upx;vertical-align: middle;" mode=""></image>
					</view>
					<view  style="margin: 0upx 20upx 30upx 20upx;font-weight: 555;font-size: 30upx;">
						{{item.label_name}}
						<text style="font-weight: 100;">{{item.label_desc}}</text>
					</view>
					<!-- 时间,分享按钮 -->
					<view style="margin: 0upx 0upx 10upx 20upx;display: flex;justify-content: space-between;height: 86upx;color: #ccc;font-size: 22upx;">
						<view>
							{{item.update_time}}
						</view>
						<button
							style="margin: 0;padding: 0;border: 1px solid #fff;outline: none;background-color: #fff;
							position: relative;width: 80upx;"
							open-type="share"
						>
							<image style="width: 35upx;position: absolute;right: 30upx;top: 0;" src="../../static/share.png" mode="widthFix"></image>
						</button>
					</view>
				</view>
			</view>
			
		</view>
		
	</view>
</template>

<script>
import uniCountdown from '@/components/uni-countdown/uni-countdown.vue'
	export default {
		components: {
			uniCountdown
		},
		data() {
			return {
				user_id:'',
				res:[],
				res_1:'',
				res_2:'',
				res_3:'',
				res_1_url:'',
				res_2_url:'',
				res_3_url:'',
				topicList:[],
				groupbuy:[],
				panicBuying_image: '',
				panicBuying_id:'',
				panicBuyingGoods_list: [],
				titleNViewBackground: '',
				swiperCurrent: 0,
				swiperLength: 0,
				carouselList: [],
				goodsList: [],
				day:1,
				hour:1,
				minute:1,
				second:1,
				expire_date:'',
			};
		},
		onLoad(e) {
			if (e.scene) { // 通过小程序码分享进来之后跳转的页面,多参数
				const scene = decodeURIComponent(e.scene)
				let obj = {};
				let arr2 = scene.split("&");
				for(let i=0 ; i < arr2.length; i++){
					let res = arr2[i].split("=");
					obj[res[0]] = res[1];
				}
				
				if (obj.id) {
					uni.setStorage({
						key: 'id',
						data: obj.id
					});
				}
				
				if (obj.select_user_id) {
					uni.setStorage({
						key: 'select_user_id',
						data: obj.select_user_id
					});
				} else {
					uni.setStorage({
						key: 'select_user_id',
						data: '0'
					});
				}
				
				if (obj.goodsid && obj.select_user_id) {
					uni.reLaunch({
						url: '/pages/product/product?goodsid=' + obj.goodsid + '&select_user_id=' + obj.select_user_id,
					})
					return
				}
				
				if (obj.goodsid) {
					uni.reLaunch({
						url: '/pages/product/product?goodsid=' + obj.goodsid,
					})
					return
				}
				
			}
			
			this.loadData();
			// 取值
			uni.getStorage({
				key: 'user_id',
				success: (res) => {
					this.user_id = res.data
				},
				fail: () => {}
			});
			let d = new Date().getTime();
			// uni.getStorage({
			// 	key: 'expire_date',
			// 	success: (res) => {
			// 		this.expire_date = res.data
			// 		if (this.expire_date < d) {
			// 			uni.removeStorage({
			// 			    key: 'user_id',
			// 			    success: function (res) {
			// 			    }
			// 			});
			// 		}
			// 	},
			// 	fail: () => {}
			// });
		},
		onPullDownRefresh() {
			let o = this
			setTimeout(function () {
				o.loadData();
				uni.stopPullDownRefresh();
			}, 1000);
		},
		methods: {
			loadData(){
				let o = this
				// 轮播图
				uni.request({
				    url: 'https://cx.mingmeijt.com/Api/SowingMap/index',
						method: 'POST',
						header:{'Content-Type':'application/x-www-form-urlencoded'},
				    success: (res) => {
							if(res.data.code == 999){
								uni.navigateTo({
									url:'/pages/999/999'
								})
							};
							if(res.data.code == 998){
								uni.navigateTo({
									url:'/pages/login/login'
								})
							};
							this.res = res.data.data.list
							for(var i=0; i<o.res.length; i++) {
								o.res[i].image = 'https://cx.mingmeijt.com' + o.res[i].image
							}
				    }
				});
				// 首页活动图
				uni.request({
					url: 'https://cx.mingmeijt.com/Api/Exercise/index',
					method: 'POST',
					header:{'Content-Type':'application/x-www-form-urlencoded'},
					success: (res) => {
						if(res.data.code == 999){
							uni.navigateTo({
								url:'/pages/999/999'
							})
						};
						if(res.data.code == 998){
							uni.navigateTo({
								url:'/pages/login/login'
							})
						}
						let res_ = res.data.data
						for(var i=0; i < res_.length; i++) {
							res_[i].image = 'https://cx.mingmeijt.com' + res_[i].image
						}
						this.res_1 = res_[0]['image']
						this.res_2 = res_[1]['image']
						this.res_3 = res_[2]['image']
						
						this.res_1_url = res_[0].url
						this.res_2_url = res_[1].url
						this.res_3_url = res_[2].url
						
					}
				});
				// 限时抢购
				uni.request({
					url: 'https://cx.mingmeijt.com/Api/PanicBuying/recommendPanicBuying',
					method: 'POST',
					header:{'Content-Type':'application/x-www-form-urlencoded'},
					success: (res) => {
						console.log(res)
						if(res.data.code == 999){
							uni.navigateTo({
								url:'/pages/999/999'
							})
						};
						if(res.data.data.panicBuyingGoods !== null && res.data.data.panicBuyingGoods !== undefined) {
							this.panicBuying_image = 'https://cx.mingmeijt.com' + res.data.data.panicBuying.thumb_image
							this.panicBuying_id = res.data.data.panicBuying.id
							this.panicBuyingGoods_list = res.data.data.panicBuyingGoods
							for(var i=0; i<o.panicBuyingGoods_list.length; i++) {
								o.panicBuyingGoods_list[i].goods_thumb_image = 'https://cx.mingmeijt.com' + o.panicBuyingGoods_list[i].goods_thumb_image
							}
						}
					}
				});
				// 限时活动列表~限时拼团
				uni.request({
				    url: 'https://cx.mingmeijt.com/Api/Assemble/index',
						method: 'POST',
						header:{'Content-Type':'application/x-www-form-urlencoded'},
				    success: (res) => {
							if(res.data.code == 999){
								uni.navigateTo({
									url:'/pages/999/999'
								})
							};
							if (res.data.data !== null && res.data.data != undefined) {
								this.groupbuy = res.data.data
								for(var i=0; i<o.groupbuy.length; i++) {
									o.groupbuy[i].goods_thumb = 'https://cx.mingmeijt.com' + o.groupbuy[i].goods_thumb
								}
							}
						}
				});
				// 话题列表
				uni.request({
				    url: 'https://cx.mingmeijt.com/Api/Label/recommendIndex',
						method: 'POST',
						header:{'Content-Type':'application/x-www-form-urlencoded'},
				    success: (res) => {
							if(res.data.code == 999){
								uni.navigateTo({
									url:'/pages/999/999'
								})
							};
							this.topicList = res.data.data
							for(var i=0; i<o.topicList.length; i++) {
								o.topicList[i].label_thumb = 'https://cx.mingmeijt.com' + o.topicList[i].label_thumb
							}
						}
				});
			},
			jumptocustomer () {
				uni.navigateTo({
					url: '../customer/customer'
				})
			},
			//暂未开放
			jumpno() {
				uni.showModal({
				title:'提示',
				content:'功能即将开放',
				showCancel: false,
				confirmColor:"#DD524D",
				 success() {
					return
				 }
				})
			 },
			jumpgoods(orderid){
				uni.navigateTo({
					url: '/pages/product/product?goodsid=' + orderid + '&sure=1'
				})
			},
			jumprushgoods(orderid) {
				uni.navigateTo({
					url: '/pages/product/rushtobuy?goodsid=' + orderid + '&sure=2'
				})
			},
			jump(e){
				uni.navigateTo({
					url: e.currentTarget.dataset.src
				});
			},
			jumpall(src) {
				uni.reLaunch({
					url: '/' + src
				})
			},
			navToDetailPage(id) {
				uni.navigateTo({
					url: '/pages/topic/article?article=' + id
				})
			},
		},
		// #ifndef MP
		// 标题栏input搜索框点击
		onNavigationBarSearchInputClicked: async function(e) {
			this.$api.msg('点击了搜索框');
		},
		//点击导航栏 buttons 时触发
		onNavigationBarButtonTap(e) {
			const index = e.index;
			if (index === 0) {
				this.$api.msg('点击了扫描');
			} else if (index === 1) {
				// #ifdef APP-PLUS
				const pages = getCurrentPages();
				const page = pages[pages.length - 1];
				const currentWebview = page.$getAppWebview();
				currentWebview.hideTitleNViewButtonRedDot({
					index
				});
				// #endif
				uni.navigateTo({
					url: '/pages/notice/notice'
				})
			}
		}
		// #endif
	}
</script>

<style lang="scss">
	
	button::after {
	  border: none;
	}
	/* #ifdef MP */
	.mp-search-box{
		position:absolute;
		left: 0;
		top: 30upx;
		z-index: 9999;
		width: 100%;
		padding: 0 80upx;
		.ser-input{
			flex:1;
			height: 56upx;
			line-height: 56upx;
			text-align: center;
			font-size: 28upx;
			color:$font-color-base;
			border-radius: 20px;
			background: rgba(255,255,255,.6);
		}
	}
	page{
		.cate-section{
			position:relative;
			z-index:5;
			// border-radius:16upx 16upx 0 0;
			// margin-top:-20upx;
		}
		.carousel-section{
			padding: 0;
			.titleNview-placing {
				padding-top: 0;
				height: 0;
			}
			.carousel{
				.carousel-item{
					padding: 0;
				}
			}
			.swiper-dots{
				left:45upx;
				bottom:40upx;
			}
		}
	}
	/* #endif */
	
	.p_father {
		width: 100%;
		height: 444upx;
		display: flex;
		justify-content: space-between;
		background-color: #fff;
		// margin-bottom: 16upx;
	}
	.p_left {
		margin: 0 10upx 0upx 20upx;
		width: 40%;
		flex: 1;
	}
	.p_left image {
		width: 100%;
		height: 100%;
	}
	.p_right {
		margin: 0 20upx 0upx 10upx;
		width: 40%;
		flex: 1;
		display: flex;
		flex-wrap: wrap;
	}
	.img_top {
		height: 212upx;
		width: 100%;
	}
	.img_top image{
		width: 100%;
		height: 100%;
	}
	.img_bottom {
		height: 212upx;
		width: 100%;
		display: flex;
	}
	.img_bottom view {
		flex: 1;
		width: 50%;
	}
	.img_bottom view:nth-child(1) image {
		width: 96%;
		height: 92%;
		margin: 4% 4% 4% 0;
	}
	.img_bottom view:nth-child(2) image {
		width: 96%;
		height: 92%;
		// margin: 4% 0% 4% 4%;
	}
	
	page {
		background: #f5f5f5;
	}
	
	.detail-desc{
		background: #fff;
		margin-top: 16upx;
		.d-header{
			display: flex;
			justify-content: center;
			align-items: center;
			height: 80upx;
			font-size: $font-base + 2upx;
			color: $font-color-dark;
			position: relative;
				
			text{
				padding: 0 20upx;
				background: #fff;
				position: relative;
				z-index: 1;
			}
			&:after{
				position: absolute;
				left: 50%;
				top: 50%;
				transform: translateX(-50%);
				width: 300upx;
				height: 0;
				content: '';
				border-bottom: 1px solid #ccc;
			}
		}
	}
	
	.h-list{
		white-space: nowrap;
		padding: 30upx 0upx 0;
		image{
			display:inline-block;
			width: 160upx;
			height: 160upx;
			margin-right: 20upx;
			// border-radius: 10upx;
		}
	}
	
	.triangle {
		width: 100%;
		height: 350upx;
		/* height: 666upx; */
		display: block;
	}
	.one .triangle {
		height: 714upx
	}
	.three .triangle {
		height: 224upx
	}
	.detail {
		background: #fff;
		padding: 20upx 12upx;
	}
	.name {
		height: 68upx;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		font-size: 24upx;
		line-height: 36upx;
	}
	.item {
		width: 100%;
		// padding: 10upx;
		box-sizing: border-box;
	}
	
	.one .item {
		width: 100%;
	}
	
	.three .item {
		width: 33.33%;
	}
	
	.m-t{
		margin-top: 16upx;
	}
	/* 头部 轮播图 */
	.carousel-section {
		position: relative;
		padding-top: 10px;

		.titleNview-placing {
			height: var(--status-bar-height);
			padding-top: 44px;
			box-sizing: content-box;
		}

		.titleNview-background {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 426upx;
			transition: .4s;
		}
	}
	.carousel {
		width: 100%;
		height: 350upx;

		.carousel-item {
			width: 100%;
			height: 100%;
			padding: 0 28upx;
			overflow: hidden;
		}

		image {
			width: 100%;
			height: 100%;
			border-radius: 10upx;
		}
	}
	.swiper-dots {
		display: flex;
		position: absolute;
		left: 60upx;
		bottom: 15upx;
		width: 72upx;
		height: 36upx;
		background-image: url();
		background-size: 100% 100%;

		.num {
			width: 36upx;
			height: 36upx;
			border-radius: 50px;
			font-size: 24upx;
			color: #fff;
			text-align: center;
			line-height: 36upx;
		}

		.sign {
			position: absolute;
			top: 0;
			left: 50%;
			line-height: 36upx;
			font-size: 12upx;
			color: #fff;
			transform: translateX(-50%);
		}
	}
	/* 分类 */
	.cate-section {
		display: flex;
		justify-content: space-around;
		align-items: center;
		flex-wrap:wrap;
		padding: 35upx 22upx; 
		background: #fff;
		.cate-item {
			display: flex;
			flex-direction: column;
			align-items: center;
			font-size: $font-sm + 2upx;
			color: $font-color-dark;
		}
		/* 原图标颜色太深,不想改图了,所以加了透明度 */
		image {
			width: 88upx;
			height: 88upx;
			margin-bottom: 14upx;
			border-radius: 50%;
			opacity: .7;
			box-shadow: 4upx 4upx 20upx rgba(0, 0, 0, 0.3);
		}
	}
	.ad-1{
		width: 100%;
		height: 210upx;
		padding: 10upx 0;
		background: #fff;
		image{
			width:100%;
			height: 100%; 
		}
	}
	/* 秒杀专区 */
	.seckill-section{
		padding: 4upx 30upx 24upx;
		background: #fff;
		.s-header{
			display:flex;
			align-items:center;
			height: 92upx;
			line-height: 1;
			.s-img{
				width: 140upx;
				height: 30upx;
			}
			.tip{
				font-size: $font-base;
				color: $font-color-light;
				margin: 0 20upx 0 40upx;
			}
			.timer{
				display:inline-block;
				width: 40upx;
				height: 36upx;
				text-align:center;
				line-height: 36upx;
				margin-right: 14upx;
				font-size: $font-sm+2upx;
				color: #fff;
				border-radius: 2px;
				background: rgba(0,0,0,.8);
			}
			.icon-you{
				font-size: $font-lg;
				color: $font-color-light;
				flex: 1;
				text-align: right;
			}
		}
		.floor-list{
			white-space: nowrap;
		}
		.scoll-wrapper{
			display:flex;
			align-items: flex-start;
		}
		.floor-item{
			width: 150upx;
			margin-right: 20upx;
			font-size: $font-sm+2upx;
			color: $font-color-dark;
			line-height: 1.8;
			image{
				width: 150upx;
				height: 150upx;
				border-radius: 6upx;
			}
			.price{
				color: $uni-color-primary;
			}
		}
	}
	
	.f-header{
		display:flex;
		align-items:center;
		height: 140upx;
		padding: 6upx 30upx 8upx;
		background: #fff;
		image{
			flex-shrink: 0;
			width: 80upx;
			height: 80upx;
			margin-right: 20upx;
		}
		.tit-box{
			flex: 1;
			display: flex;
			flex-direction: column;
		}
		.tit{
			font-size: $font-lg +2upx;
			color: #font-color-dark;
			line-height: 1.3;
		}
		.tit2{
			font-size: $font-sm;
			color: $font-color-light;
		}
		.icon-you{
			font-size: $font-lg +2upx;
			color: $font-color-light;
		}
	}
	/* 团购楼层 */
	.group-section{
		background: #fff;
		.g-swiper{
			height: 650upx;
			padding-bottom: 30upx;
		}
		.g-swiper-item{
			width: 100%;
			padding: 0 30upx;
			display:flex;
		}
		image{
			width: 100%;
			height: 460upx;
			border-radius: 4px;
		}
		.g-item{
			display:flex;
			flex-direction: column;
			overflow:hidden;
		}
		.left{
			flex: 1.2;
			margin-right: 24upx;
			.t-box{
				padding-top: 20upx;
			}
		}
		.right{
			flex: 0.8;
			flex-direction: column-reverse;
			.t-box{
				padding-bottom: 20upx;
			}
		}
		.t-box{
			height: 160upx;
			font-size: $font-base+2upx;
			color: $font-color-dark;
			line-height: 1.6;
		}
		.price{
			color:$uni-color-primary;
		}
		.m-price{
			font-size: $font-sm+2upx;
			text-decoration: line-through;
			color: $font-color-light;
			margin-left: 8upx;
		}
		.pro-box{
			display:flex;
			align-items:center;
			margin-top: 10upx;
			font-size: $font-sm;
			color: $font-base;
			padding-right: 10upx;
		}
		.progress-box{
			flex: 1;
			border-radius: 10px;
			overflow: hidden;
			margin-right: 8upx;
		}
	}
	/* 分类推荐楼层 */
	.hot-floor{
		width: 100%;
		overflow: hidden;
		margin-bottom: 20upx;
		.floor-img-box{
			width: 100%;
			height:320upx;
			position:relative;
			&:after{
				content: '';
				position:absolute;
				left: 0;
				top: 0;
				width: 100%;
				height: 100%;
				background: linear-gradient(rgba(255,255,255,.06) 30%, #f8f8f8);
			}
		}
		.floor-img{
			width: 100%;
			height: 100%;
		}
		.floor-list{
			white-space: nowrap;
			padding: 20upx;
			padding-right: 50upx;
			border-radius: 6upx;
			margin-top:-140upx;
			margin-left: 30upx;
			background: #fff;
			box-shadow: 1px 1px 5px rgba(0,0,0,.2);
			position: relative;
			z-index: 1;
		}
		.scoll-wrapper{
			display:flex;
			align-items: flex-start;
		}
		.floor-item{
			width: 180upx;
			margin-right: 20upx;
			font-size: $font-sm+2upx;
			color: $font-color-dark;
			line-height: 1.8;
			image{
				width: 180upx;
				height: 180upx;
				border-radius: 6upx;
			}
			.price{
				color: $uni-color-primary;
			}
		}
		.more{
			display:flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			flex-shrink: 0;
			width: 180upx;
			height: 180upx;
			border-radius: 6upx;
			background: #f3f3f3;
			font-size: $font-base;
			color: $font-color-light;
			text:first-child{
				margin-bottom: 4upx;
			}
		}
	}
	/* 猜你喜欢 */
	.guess-section{
		display:flex;
		flex-wrap:wrap;
		padding: 0 30upx;
		background: #fff;
		.guess-item{
			display:flex;
			flex-direction: column;
			width: 48%;
			padding-bottom: 40upx;
			&:nth-child(2n+1){
				margin-right: 4%;
			}
		}
		.image-wrapper{
			width: 100%;
			height: 330upx;
			border-radius: 3px;
			overflow: hidden;
			image{
				width: 100%;
				height: 100%;
				opacity: 1;
			}
		}
		.title{
			font-size: $font-lg;
			color: $font-color-dark;
			line-height: 80upx;
		}
		.price{
			font-size: $font-lg;
			color: $uni-color-primary;
			line-height: 1;
		}
	}
	

</style>
